package com.xie.dao;

import com.xie.pojo.Homework;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface HomeworkMapper {

    int addHomework(Homework homework);

    List<Homework> queryAllHomework();

    int deleteHomework(@Param("homework_id") int homework_id);

    int updateHomework(Homework homework);

    Homework queryHomework(@Param("homework_id") int homework_id);

    List<Homework> queryHomeworkByName(@Param("sname") String sname);





}
